/**Class represents a square based on an regular polygon where all angles have the same size and all edges the same length.
 * 
 */
public class Square extends RegularPolygon {
	
	/**Creates a new square with a given length for each edge.
	 * 
	 * @param length Length of each edge.
	 * @throws NotEnoughEdgesException Exception if polygon is created with less than 3 edges.
	 * @throws ValueSmallerZeroException Exception if negative values are given for the length of an edge.
	 */
	protected Square(double length) throws NotEnoughEdgesException, ValueSmallerZeroException {
		super(4, length);
	}
}
